﻿using System.Data;
using MyWeb.Data;

namespace MyWeb.Business
{
	public class tblNewsService
	{
		private static readonly tblNewsDAL db = new tblNewsDAL();
		#region[tblNews_GetById]
		public static DataTable tblNews_GetById(tblNewsInfo Data)
		{
			return db.tblNews_GetById(Data);
		}
		#endregion
		#region[tblNews_GetByAll]
		public static DataTable tblNews_GetByAll()
		{
			return db.tblNews_GetByAll();
		}
		#endregion
		#region[tblNews_GetByTop]
		public static DataTable tblNews_GetByTop(string Top, string Where, string Order)
		{
			return db.tblNews_GetByTop(Top, Where, Order);}
		#endregion
		#region[tblNews_Insert]
		public static void tblNews_Insert(tblNewsInfo Data)
		{
			 db.tblNews_Insert(Data);
		}
		#endregion
		#region[tblNews_Update]
		public static void tblNews_Update(tblNewsInfo Data)
		{
			 db.tblNews_Update(Data);
		}
		#endregion
		#region[tblNews_Delete]
		public static void tblNews_Delete(string Data)
		{
			 db.tblNews_Delete(Data);
		}
		#endregion
	}
}